package adapter;

//适配器：实现目标接口
public class ThreeElectricAdapter implements ThreeElectricOutlet {

    //适配器包含被适配者的引用
    private final TwoElectricOutlet outlet;


    public ThreeElectricAdapter(TwoElectricOutlet outlet) {
        this.outlet = outlet;
    }


    public void connectElectricCurrent() {
        outlet.connectElectricCurrent();
    }

}